<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>layUI后台模板</title>
    <link rel="stylesheet" href="https://unpkg.com/layui-src@latest/dist/css/layui.css">    
</head>
<body>         
<table class="layui-hide" id="test"></table>               
<script src="https://unpkg.com/layui-src@latest/dist/layui.js"></script>

<script type="module">
import api from '../common/api.js'
import {fetchData, verifyParams, tableOpt} from '../common/fetch.js'

layui.use('table', function(){
  var table = layui.table;
  fetchData(api.flowList, {billNo: '1024'}, res => {
    console.log(res.data)
  })
  /* const opt = tableOpt({
    elem: '#test',
    url: api.flowList,
    cols: [[
      {field:'accountBalance',  title: '余额', sort: true},
      {field:'createDate', title: '创建时间'}
    ]]
    
  })
  table.render(opt) */
});
</script>

</body>
</html>